# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:$

inherit eutils gnome2

DESCRIPTION="Beautiful 3D image generator"
HOMEPAGE="http://www.math.cmu.edu/~fho/jenn/"
SRC_URI="http://www.math.cmu.edu/~fho/jenn/jenn3d.2008_01_15.tgz"

S="${WORKDIR}/jenn3d"


LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd"
IUSE="png"

RDEPEND=">=dev-libs/glib-2.6
	png? (
		media-libs/libpng
	)"


src_compile() {
	emake || die "make failed"
}

src_install() {
	mkdir -p "${D}/usr/bin/" || die "mkdir failed!"
	cp  "${S}/jenn" "${D}/usr/bin/jenn3d" || die "Install failed!"
}
